<?php

	$catering_total = $this->caseInfo['catering_total'];
	$headcount = $this->caseInfo['headcount'];
	$caterer = stripslashes($this->caseInfo['caterer']);
	$catering_notes = stripslashes(trim($this->caseInfo['catering_notes']));
	$menu = stripslashes($this->caseInfo['menu']);
	
	$datetime = stripslashes($this->caseInfo['datetime']);
	if(empty($datetime) || $datetime == "0000-00-00 00:00:00")
	{
		$datetime = date("Y-m-d g:i A");
	}
	else
		list($date,$time) = split(' ', $datetime);
	
	list($menu_name, $price_and_units) = split(' : ', $menu);
	list($price, $units) = split(' / ', $price_and_units);
 ?>


<div class="standard left">
<div class="twocol_1">
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="358" height="505" id="floral_slideshow" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="movie" value="../art/flash/catering_slideshow.swf" />
	<param name="quality" value="high" />
	<param name="bgcolor" value="#ffffff" />
	<embed src="../art/flash/catering_slideshow.swf" quality="high" bgcolor="#ffffff" width="358" height="505" name="floral_slideshow" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object><br>
</div>

<div class="twocol_2">
	<p>Most of our families plan to have a gathering or reception before, during or after the services. 
	We can help make all of these arrangements for you in the location of your choice.</p>
	<br>
	<input type="hidden" name="caterer_info"><!-- caterer name, address, contact info. -->
	<input type="hidden" name="menu_info"><!-- menu name, descr, price, units. -->
	<div>
		<label for="location">Location:</label><br>
		<textarea name="location" rows="3" cols="40" style="font-family:Cambria,Arial,Helvetica,sans-serif;"><?php echo $this->caseFHinfo['name']."\n".$this->caseFHinfo['addr1']."\n".$this->caseFHinfo['city'].", ".$this->caseFHinfo['state']?></textarea>
	</div>
	<div style="width:100%; float:left; padding-right:10px;">
		<label for="date">Date and Time:</label><br> 
		<div style="float:left; padding-right:5px; text-align:left; width:100%; margin-bottom:10px;">
			<a href="javascript: NewCssCal('dateandtime','YYYYMMDD','dropdown',true,12)"><img src="<?php echo JS_BASE."/images/cal.gif"?>" border="0" width="16" height="16" alt="Pick a date"></a>&nbsp;
			<input type="text" readonly style="width:50%; margin:0;" id="dateandtime" name="datetime" size="30" value="<?php echo $datetime?>">
		</div>
	    
	</div>
	<br clear=all>
	<div style="width:48%;float:left">
		<!-- caterers dropdown -->
		<select name="caterer" id="caterer" onChange="loadMenusList()">
		<option selected>Choose a Caterer</option>
		</select>
	</div>
	<div style="width:48%;float:right">
		<!-- menus dropdown -->
		<select name="menu" id="menu" onChange="menuWasSelected()">
		<option selected>Choose a Menu</option>
		</select>
	</div>
	<br clear=all>
	<div>
		<!-- computation -->
		<div style="float:left;padding-right:5px;width:60px;">
		<label for="headcount"># People:</label><br>
		<input type=text name="headcount" size=5 id="headcount" value="<?php echo $headcount?>">
		</div>
		<div style="float:left;padding:20px 5px 0px 5px;">
		&nbsp;x&nbsp;
		</div>
		<div style="float:left;padding-right:5px;width:60px;">
		<label for="cost">$ Cost:</label><br>
		<input type=text name="cost" id="cost" size=5 value="<?php echo $price?>">
		</div>
		<div style="float:left;padding:20px 5px 0px 5px;vertical-align:bottom">
		&nbsp;=&nbsp;
		</div>
		<div style="float:left;padding-right:10px;width:60px;">
		<label for="total">$ Total:</label><br>
		<input type=text name="total" id="total" size=5 value="<?php echo $catering_total?>">
		</div>
		<div style="float:left;height:100%;vertical-align:bottom"><br>
		<button id="recalcbutton" onclick="headcountChanged();return false;"> </button>
		</div>
	</div>
	<br clear=all>
	
		<div>
			<label for="selections">Selections:</label>
			<textarea name="menudetail" id="menudetail" rows="3" readonly></textarea>
		</div>
		<div>
			<!-- notes textarea -->
			<label for="notes">Special Instructions / Notes:</label><br>
			<textarea name="notes" id="catering_notes" rows="3"><?php echo  $catering_notes ?></textarea>
		</div>
	
</div>
<br clear="all">
 
</div>